/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package EvoAlg;

/**
 *
 * @author Geost1gma
 */
public class Individual {

    Phenotype gene;
    private int numberOfGenotypes;
    private double fitness;

    public Individual() {
        gene = new Phenotype();
        fitness = 0.0;
        this.numberOfGenotypes = numberOfGenotypes;
    }

    public Individual copyIndividual(){
        Individual r = new Individual();
        r.fitness = fitness;
        r.gene = gene;
        r.fitness = fitness;

        return r;
    }

    public double getFitness() {
        return fitness;
    }

    public void setFitness(double fitness) {
        this.fitness = fitness;
    }

    public Phenotype getGene() {
        return gene;
    }

    public void setGene(Phenotype gene) {
        this.gene = gene;
    }

    public int getNumberOfGenotypes() {
        return numberOfGenotypes;
    }

    public void setNumberOfGenotypes(int numberOfGenotypes) {
        this.numberOfGenotypes = numberOfGenotypes;
    }

    

}
